//
// Created by LiuYou on 2021/8/11.
//

#ifndef NETRADIOLCPP_SERVER_HPP
#define NETRADIOLCPP_SERVER_HPP


static char DEFAULT_MEDIA_DIR[] = "/var/media";
static char DEFAULT_IF[] = "eth0";


enum {
    RUN_DAEMON = 1,
    RUN_FOREGROUND
};


class ServerConfig {
public:
    char* rcvPort;
    char* multiGroup;
    char* mediaDir;
    char runMode;
    char* ifName;

};


extern ServerConfig serverConfig;
extern int socketFd;
extern struct sockaddr_in senderAddress;


#endif //NETRADIOLCPP_SERVER_HPP
